﻿/***************************************************************************
//* Foxit Software Inc.
//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
//* and trade secrets of Foxit Software Inc.                                                      *
***************************************************************************/

/**
* 排版使用到的一些常量和结构
*/




define(function (require, exports, module) {
    require('../ViewLevel.js');

    //zoom mode
    FXREADER.PDFView.RD_ZMODE_NONE = 0;
    FXREADER.PDFView.RD_ZMODE_CUSTOM = 1;
    FXREADER.PDFView.RD_ZMODE_ACTUAL_SIZE = 2;
    FXREADER.PDFView.RD_ZMODE_FIT_PAGE = 3;
    FXREADER.PDFView.RD_ZMODE_FIT_WIDTH = 4;
    FXREADER.PDFView.RD_ZMODE_FIT_HEIGHT = 5;
    FXREADER.PDFView.RD_ZMODE_FIT_RECTANGLE = 6;
    FXREADER.PDFView.RD_ZMODE_FIT_VISIBLE = 7;

    //browse mode
    FXREADER.PDFView.RD_BRMODE_CONTINUOUS = 0;
    FXREADER.PDFView.RD_BRMODE_CONTINUOUS_FACING = 1;

    //rotate mode	
    FXREADER.PDFView.RD_ROTATE_POS_TOP = 0;   //[0度]
    FXREADER.PDFView.RD_ROTATE_POS_LEFT = 3;   //[-90度]
    FXREADER.PDFView.RD_ROTATE_POS_BOTTOM = 2;   //[180度]
    FXREADER.PDFView.RD_ROTATE_POS_RIGHT = 1;   //[90度]



    FXREADER.PDFView.LayoutInfo = function () {
        this.nRotatePos = 0;                            //[0,90,-90,180度]	]
        this.nZoomToMode = FXREADER.PDFView.RD_ZMODE_FIT_WIDTH;                   //[放大缩小模式]
        this.nShowMode = FXREADER.PDFView.RD_BRMODE_CONTINUOUS; //[显示模式::Single/Continuous]	
        this.nFacingCount = 1;                    //[横向显示几页]
        this.bReplaceColor = false;
        this.cxMargin = 0;                          //[Margin的X大小]
        this.cyMargin = 0;                          //[Margin的Y大小]	
        this.nPageSpace = 0;                     //[页与页之间的间隔]
        this.bDispGrid = false;                   //[是否显示网格]
        this.bFacing = false;                      //[是否为Facing]     
        this.bReversed = false;                  //[是否倒页面]
        this.dbScale = 1.0;                        //[缩放比例大小]
        this.dbMaxScale = 2;
        this.dbMinScale = 0.5;
        this.bCoverPage = false;               //[封面]
        this.bShowAnnot = false;
    }


    return FXREADER.PDFView.LayoutInfo;

});